#include "ros/ros.h"
#include "std_msgs/String.h"
#include "serial_driver/rm_serial_driver.hpp"

#include <thread>

// ------ main ------
int main(int argc, char** argv)
{
  // ---- ros 节点初始化 ----
  ros::init(argc, argv, "serial_test");
  ros::NodeHandle n;

  // ---- 保存通信器的实例 ----
  rm_serial_driver::RMSerialDriver stm_com(n);

  // TODO: 拆分线程
  ros::spin();

  std::cout << "程序已结束" << std::endl;
  return 0;
}
